package 实验2;

public class Student {
	private String id;
    private String name;
    private String sex;
    private Course selectedCourse;
    
    public Student(String id, String name, String gender) {
        this.id = id;
        this.name = name;
        this.sex = sex;
    }
    public void selectCourse(Course course) {
        this.selectedCourse = course;
    }

    public void dropCourse() {
        this.selectedCourse = null;
    }
    public Course getSelectedCourse() {
    	return selectedCourse;
    }
    public String getId() {
    	return id;
    }
    public String getName() {
		return name;
	}
    public String getSex() {
		return sex;
	}
}
